//
//  BLView.m
//  HeartTravel
//
//  Created by lanou on 15/10/27.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "BLView.h"

@implementation BLView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        CGFloat height = frame.size.height;
        CGFloat width = frame.size.width - height;
        _button = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _button.frame = CGRectMake(0, 0, height, height);
        
        _label = [[UILabel alloc]initWithFrame:CGRectMake(width + 5, 5, width + 20, height - 10)];
        _label.font = [UIFont systemFontOfSize:11];
        _label.textColor = [UIColor lightGrayColor];
        
        [self addSubview:_button];
        [self addSubview:_label];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
